import { Spin } from "antd"
import type { LoadingPageProps } from "../../type/HomeType"
import './LoadingPageStyle.sass'
import { Loading3QuartersOutlined } from "@ant-design/icons"

function LoadingPage (props: LoadingPageProps) {
  return (
    <>
      { props.loading && <Spin indicator={ <Loading3QuartersOutlined spin style={{ fontSize: 36, color: 'rgba(255, 255, 255, 0.8)' }} /> } fullscreen /> }
    </>
  )
}

export default LoadingPage
